package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Attractions;
import cn.wolfcode.luowowo.article.query.AttractionsQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttractionsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Attractions record);

    Attractions selectByPrimaryKey(Long id);

    List<Attractions> selectAll();

    int updateByPrimaryKey(Attractions record);

    List<Attractions> Top5(Long destId);

    List<Attractions> hotList(Long destId);

    List<Attractions> pageResult(@Param("characteristicId") Long characteristicId, @Param("destId") Long destId);

    List<Attractions> selectSonById(Long id);

    void addReplynumByDetailId(Long attractionsId);

    List<Attractions> selectForList(AttractionsQuery qo, Long uid);

    List<Attractions> selectReviewSize(Long id);

}